Beta 25

but has a bug 

Post 9,940
https://www.forexfactory.com/showthread.php?p=10138541#post10138541


Right now when the EA gets to the part where it calculates profit it only looks at Bid/Ask - OrderOpenPrice().
So the lotsize is not part of the factor at that point. 

There is another way to calculate profit where it uses the lotsize... it's like this

pip_profit += ((OrderProfit()+ OrderCommission() + OrderSwap())/OrderLots()/tickval)/p; Where o=point size

So now we see OrderLots() in the equation. In the example that was previously provided 3 EURUSD we would need to multiply by 3 the equation when it for to EURUSD.. I GOT IT!!


factor = 1; <== start with 1 otherwise change it to below
factor=OrderLots()/Lotz <== this is the bast lotsize. So for example or EURUSD factor= 0.03/0.01 = 3

Then equation becomes:
pip_profit += factor*(((OrderProfit()+ OrderCommission() + OrderSwap())/OrderLots()/tickval)/p); 

So factor can be 1 or 3. 

Ok Creates Beta 25. Lets see if it works. Occat if you can please test this on a small basket with duplicates.
See if the pip count is as if it were with no combined lotsizes.
Make sure to set:
Combine Lotsizes of Duplicate Trades=True
Our AWESOME IMAGINATION is the true holy grail!